package com.yulongtian.mapper;

import com.yulongtian.entity.TemHumData;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yulongtian.vo.TemHumDataVO;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.HashMap;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author yulongtian
 * @since 2022-11-15
 */
public interface TemHumDataMapper extends BaseMapper<TemHumData> {

    /**
     * 返回所有的设备编号下的数据
     * @param deviceCode
     * @return
     */
    List<TemHumData> getDataByDeviceCode(@Param("deviceCode") String deviceCode);

    /**
     * 返回所有的设备编号下的数据  模糊分页查询
     * @param temHumData
     * @return
     */
    List<TemHumData> getDataByDeviceCodePage(@Param("temHumData") TemHumDataVO temHumData);

    List<TemHumData> zheXianTuShowTem(@Param("deviceCode") String deviceCode, @Param("bigCreateTime") LocalDateTime bigCreateTime, @Param("smlCreateTime") LocalDateTime smlCreateTime);
}
